{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网络安全集中分析平台</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap/css/bootstrap.min.css' %}">
    <style>
        body {
            background-image: url("{% static '/images/bg1.jpg' %}");
            background-repeat: no-repeat;
            background-position: center center;
            background-size: 100% 100%;
            background-color: #e5e8ed;
        }

        .container {

        }

        .login {
            background-color: #e8e8e8;
            background-image: url("{% static 'images/login.png' %}");
            background-size: 27em;
            background-position: -30px -5px;
            background-repeat: no-repeat;
            width: 700px;
            height: 380px;
            border: 1px solid #dddddd;
            margin-left: auto;
            margin-right: auto;
            margin-top: 150px;


            padding-left: 40px;
            padding-right: 40px;
            padding-bottom: 30px;

            border-radius: 20px 20px 20px 20px;
            box-shadow: 5px 10px 10px gray;
        }

        .content {
            margin-top: 50px;
            margin-left: 220px;
            width: 450px;
            height: 250px;
        }

        .title {
            text-align: center;

        }

        h1 {

        }

        h6 {
            font-size: 12px;
            font-family: Georgia;
        }

        .footer {
            margin: 10px auto;
            color: #939393;
            text-align: center;
        }

    </style>
</head>
<body>
<div class="container">
    <div class="login">
        <div class="title">
            <h1>网络安全集中分析平台</h1>
            <h6>KunMing RailWay Cyber Security</h6>
        </div>
        <div class="content">
            <form class="form-horizontal clearfix" method="post" novalidate>
                {% csrf_token %}
                {% for field in form %}
                    <div class="form-group form-group-lg col-sm-12 clearfix">
                        <label class="col-sm-3 control-label">{{ field.label }}
                            {% if field.help_text %}
                                <span style="font-weight: 300;color: #333333">{{ field.help_text }}</span>
                            {% endif %}
                        </label>
                        <div class="col-sm-9" style="margin-bottom:20px;">
                            {{ field }}<span style="color:firebrick;position: absolute;">{{ field.errors.0 }}</span>
                        </div>
                    </div>
                {% endfor %}
                <div class="form-group col-sm-12">
                    <div class="col-sm-12">
                        <div class="col-sm-offset-1">
                            <button type="submit" class="btn btn-primary btn-lg">登录</button>
                            <span style="color: red;">{{ error }}</span>
                        </div>
                    </div>
                </div>
            </form>
        </div>
       <div class="footer">
            Copyright &copy; 2024 All Rights Reserved 信息技术所
        </div>
    </div>
</div>
<script src="{% static 'plugins/bootstrap/js/bootstrap.min.js' %}"></script>
</body>
</html>